-- GENERATED SPELL FOR [Snowblind Digger] --


function spell0_29413(pUnit, Event) --@Puncture Wound,n/a--
pUnit:FullCastSpellOnTarget(48374,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29413', 5000, 1)
end

function spell1_29413(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(50370,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29413', 15293, 1)
end

function Sorts_29413(pUnit, Event)
local choix_sorts_29413 = math.random(0, 1)
if choix_sorts_29413 == 0 then
pUnit:RegisterEvent('spell0_29413', 1, 1)
end
if choix_sorts_29413 == 1 then
pUnit:RegisterEvent('spell1_29413', 1, 1)
end
end

function mob29413_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29413', math.random(1500, 3000), 1)
end

function mob29413_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29413_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29413_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29413, 1, 'mob29413_Action')
RegisterUnitEvent(29413, 2, 'mob29413_Leave')
RegisterUnitEvent(29413, 3, 'mob29413_Kill')
RegisterUnitEvent(29413, 4, 'mob29413_Die')
